/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.xinxi.dms.service;

import com.xinxi.dms.po.Room;
import java.util.List;

/**
 *
 * @author zhigu
 */
public interface IRoomService {
    
    public boolean add(Room room);
    
    public Room getByRoom(Room room);
    
    public List<Room> findAll();

    public boolean update(Room room);
    
    public boolean delete(Integer roomid );
    //根据楼号查询
    public List<Room> getRoomUnitno(String buildingno);
    
    public List<Room> getRoomRoomno(String buildingno,String unitno);
    
    public List<Room> getRoom25(String unitno);
    
    public List<Room> getRoom23(String unitno);
    //根据楼号单元号房间号查询编号
    public Room getRoomid(String buildingno,String unitno,String roomno);
    
}
